from django.contrib.syndication.feeds import Feed
from eport.blog.models import Post

class LatestArticles(Feed):
	title_template = 'feeds/title.html'
	description_template = 'feeds/description.html'
	title = "Phillip's Eportfolio - Blog"
	description = "Latest Blog Posts"
	link = "/blog/"
	comments = "test"
	def items(self):
		return Post.objects.order_by('-creation_date')[:5]
	def pubdate(self):
		return self.creation_date